

<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="h" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="DadosUser" type="model.User" scope="session"/> 

<form method="post" action="UpDateUser.do" class="allForm userEdit" id="userEditForm">
    <fieldset class="form container user">
        <div class="title">
            <span class="h1">Cadastro de Usuário</span>
        </div>
        <input type="hidden"  value="${DadosUser.id}" name="txtId"  />
      
        <div class="form-field user-name ">
            <label>Nome:</label> 
            <input type="text" class="form-control new-user"  value="${DadosUser.name}" name="txtName"  readonly="true" required/>
        </div>
        <div class="form-field user-email">
            <label>Login:</label> 
            <input type="text" class="form-control new-login" name="txtEmail"   
                   pattern="^([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))$"  title="Formato incorreto"   value="${DadosUser.email}"  readonly="true" required/>
        </div>
        <div class="form-field user-profile">
            <label for="profile">Perfil:</label> 
            <select name="lstProfile" class="form-control profile " id="lstProfile">
                <option value="${DadosUser.lstprofile}">${DadosUser.lstprofile}</option>
            </select>
        </div>

        <div class="checkStatus">
            <label for="status">Status</label> 
            <select name="lstStatus" class="form-control profile " id="lstStatus">
                <option value="${DadosUser.lstStatus}">${DadosUser.lstStatus}</option>

            </select>
        </div>
        <div class="form-actions buttonsActionUser" >
            <input type="button" onclick="disabledEdit()" id="btnEditar" class="button-black search"  value="Editar">
            <input type="button"  id="btnAtualizar" class="button-black "  value="Atualizar" onclick="doAjaxPostUpdateUser();return false;">
        </div>
    </fieldset>


</form>
